<?php
	namespace app\controllers\test_study;
	use yii\web\Controller;
	use app\models\test_study\table1;
	class SqlorderController extends Controller{
		public function actionIndex(){
			$table1 = table1::find()->with()->all();
			foreach($table1 as $table){
				$orders = $table->orders;
			}
		}
	}
?>